﻿using System;
using System.Collections.Specialized;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using IntraVision.Web;
using IntraVision.Web.Security;
using Model;

[AllowedRole("IsAdmin")]
public class AboutController : EntityListController<NotarialSetting, NotarialServiceDataContext>
{
    public override void List()
    {
        return;
    }

    public void Default()
    {
        using (var dc = new NotarialServiceDataContext())
        {
            var ns = dc.NotarialSettings.FirstOrDefault();
            if (ns != null)
            {
                TemplatePath = "~/views/notarialsettings/about.haml"; 
                View(ns.Id.ToString());
            }
        }
    }

    public override void Create()
    {
        return;
    }

    public override void Delete()
    {
        return;
    }
}
